package com._dev.social.service;



import com._dev.social.mode.domain.Threads;
import com._dev.social.mode.domain.response.ThreadResp;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【threads】的数据库操作Service
* @createDate 2024-11-06 17:54:06
*/
public interface ThreadsService extends IService<Threads> {
    // 添加一个话题
    void addThread(Threads threads);

    //根据用户id 获取发布的话题
    List<Threads> getThreadById(String userId);

    // 获取所有话题列表
    List<Threads> getAllThreads();

    // 删除话题
    Boolean deleteThread(String userId,int tid);

    // 更新话题信息
    Integer updateThread(Threads threads,String userId);

    List<ThreadResp> getThreadsWithUserInfoOptimized();

    List<ThreadResp> getListFollowThreadById(String userId);
}
